import request from '@/utils/request'

export default {
  //请求列表
  getSubjectList() {
    return request({
      url: "/eduservice/subject/list",
      method: 'get'
    })
  },
  //请求科目的id和Title的映射
  getTitleAndIdMapper(){
    return request({
      url: "/eduservice/subject/getAllTitleAndIdMapper",
      method: 'get'
    })
  },
  getSubjectById(id){
    return request({
      url: `/eduservice/subject/getSubject/${id}`,
      method: 'get'
    })
  }
}

